{% extends 'IMTUserBundle::layout-profile.html.twig' %}

{% block main_title %}Profil - Gérer mes comptes{% endblock %}

{% block include_style %}
<style>
.sortable-list > ul > li:before {
	content: "";
}
</style>
{% endblock %}

{% block profil_ariane %}
<li>
	<i class="icon-home"></i><a href="{{ path('fos_user_profile_show') }}">Profil</a>
	<span class="divider">&raquo;</span>
</li>
<li>
	Comptes
</li>
{% endblock %}

{% block profil_header %}
<div class="profile-head clearfix">
	<div class="profile-info pull-left">
		<h1 class="profile-username">Gérer mes comptes</h1>
	</div>
	
	<div class="btn-toolbar pull-right">
		<div class="btn-group">
			<a class="btn btn-success" href="{{ path('account_accountimt_new') }}"><i class="icon-plus"></i> Ajouter un compte</a>
			<button data-toggle="dropdown" class="btn btn-success dropdown-toggle"><span class="caret"></span></button>
			<ul class="dropdown-menu">
		        <li><a href="{{ path('account_accountimt_new') }}">Compte MyTime</a></li>
		        <li><a href="{{ path('account_accountgmail_new') }}">Compte Gmail</a></li>
	        </ul>
	    </div>
	</div>
</div>
{% endblock %}

{% block profil_menu %}
{% include 'IMTUserBundle::menu-profile.html.twig' with {'profile_menu_selected' : 'accounts'} %}
{% endblock %}

{% block profil_content %}
<div class="profile-content">
	<div class="tab-content">
		<div class="tab-pane active" id="profile">
			<div class="row-fluid">
			
				<div class="span12">
					<h4 class="sub"><span>Liste des comptes MyTime</span></h4>
					<div class="widget-content no-padding sortable-list shoppingcart">
						<ul class="thumbnails">
					{% for account in accounts_imt %}
						{% render 'IMTAccountBundle:AccountIMT:show' with {'id':account.id} %}
					{% else %}
						<div class="alert">
					    	Aucun compte enregistré
					    </div>
					{% endfor %}
						</ul>
					</div>
					
					<h4 class="sub"><span>Liste des comptes Gmail</span></h4>
					<div class="widget-content no-padding sortable-list shoppingcart">
						<ul class="thumbnails">
					{% for account in accounts_gmail %}
						{% render 'IMTAccountBundle:AccountGmail:show' with {'id':account.id} %}
					{% else %}
						<div class="alert">
					    	Aucun compte enregistré
					    </div>
					{% endfor %}
						</ul>
					</div>
				</div>				
			</div>										
		</div>
	</div>
</div>
{% endblock %}
